/********************************************************************
                    Return Ratio Information
PURPOSE: This packet class augments the process class
********************************************************************/
 class RRinfo {
      Process X; // reference only
      int wait, service;
      double RR;
      
   /*--------------------------------------------------------
                        Constructor
   PURPOSE:  To package process class and intiliaze extra data
   PARAMETERS: references the process class
   --------------------------------------------------------*/
      public RRinfo(Process A) {
         X = A;
         wait = 0;
         service = X.getService();
         RR = 1.0;
      } // constructor

      // interface
      public Process getProc() { return X; }
      public double getRR() { return RR; }
         
   /*--------------------------------------------------------
                        delay update
   PURPOSE:  To update the return ratio, and wait variable
   --------------------------------------------------------*/
      public void delay() {
         RR = (++wait + service)/service;
      } // update RR
   } // added RR information


